﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CookComputing.XmlRpc;

namespace sklik_api
{
    public interface ISklikAPI : IXmlRpcProxy
    {

        [XmlRpcMethod("client.login")]
        LoginIn login(string username, string password);

        [XmlRpcMethod("client.getAttributes")]
        ClientAttributOut ClientAttribut(string session);

        [XmlRpcMethod("client.logout")]
        LoginOut logout(string session_id);

        [XmlRpcMethod("listCampaigns")]
        listCampaigns ListOfCampaing(string session, int userId);

        [XmlRpcMethod("listReports")]
        listReports ListOfReports(string session, int userId);

        [XmlRpcMethod("listCampaigns")]
        listCampaigns ListOfCampaing(string session);

        [XmlRpcMethod("report.getAttributes")]
        ReportAttributes ListOfReport(string session, int campaignId);

        [XmlRpcMethod("campaign.stats")]
        CampaingStat CampaingStats(string session, int campaignId, DateTime from, DateTime to);
    }
}
